﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addnewsclass.aspx.cs" Inherits="WebSite.admin.title.addnewsclass" %>
<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>
<%@ Register Src="../languages.ascx" TagName="head" TagPrefix="uc1" %>
 

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>文章类别管理</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />

	<script language="JavaScript" src="../../js/function.js"></script>
    <script language="javascript">
        function CheckFrm() {
            var obj = 'classname';
            var objt = '1';
            var msg = '分类名称';
            var chks = chk(form1, obj, objt, msg)
            if (!chks) {
                return false;
            }
        }

        function SelectCheckBox(chks, btn) {
            var num = chks.length;
            if (btn.checked) {
                for (i = 0; i < num; i++) {
                    chks[i].checked = true
                }
            } else {
                for (i = 0; i < num; i++) {
                    chks[i].checked = false
                }
            }
        }
        function CheckSelect(chks) {
            var num = chks.length;
            var flag = false;
            for (var i = 0; i < num; i++) {
                if (chks[i].checked == true) {
                    flag = true;
                    break;
                }
            }
            if (flag) {
                return confirm('确实要更新选择的信息吗?');
            }
            else {
                alert("你没有选择任何信息，请先选择要更新的信息!");
                return false;

            }
        }
    </script>
</head>
<body bgcolor="#F1F4F7">
    <form id="form1" runat="server">
    <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
  <br />
  <table width="90%" border="0" cellpadding="5" cellspacing="0">
    <tr id="cn" style="display:;" runat="server">
      <td align="right" width="15%">分类名称：</td>
      <td align="left"><input size="27" name="classname" id="classname" runat="server" />* </td>
    </tr>
    
    <tr align="center" id="typecn" style="display:;" runat="server">
      <td align="right" width="15%">上级分类：</td>
      <td align="left">
      <asp:DropDownList ID="typeid" runat="server">
          <asp:ListItem Text="顶级分类" Value="0"></asp:ListItem>
      </asp:DropDownList>
      </td>
    </tr>
    
    <tr>
      <td align="right" width="15%">排序：</td>
      <td align="left"><input size="15" value="0" name="classorder" id="classorder" runat="server" />      </td>
    </tr>
    <tr>
      <td align="right">是否显示：</td>
      <td align="left"><asp:CheckBox ID="CheckBox1" runat="server" Checked="true" /></td>
    </tr>
    <!--tr>
      <td align="right">显示在导航栏：</td>
      <td align="left"><asp:CheckBox ID="CheckBox2" runat="server" />(如果显示则必须填写链接地址)</td>
    </tr-->
     <tr>
          <td align="right"><a title="如果是本站的网址，可缩写为与商城根目录相对地址，如index.aspx；&lt;br&gt;其他情况都应该输入完整的网址，如http://www.kingdeone.com/" href="javascript:clicksa(config1);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" />链接地址</a>：</td>
          <td align="left" height="35"><input name="classlink" id="classlink" runat="server" style="width: 239px" /><span id="config1" style="display:none"><br />如果是本站的网址，可缩写为与商城根目录相对地址，如index.aspx；其他情况都应该输入完整的网址，如http://www.kingdeone.com/ </span>
          </td>
      </tr>
    
    <!--tr>
      <td align="right">关键字：</td>
      <td align="left"><input size="50" name="classkey" id="classkey" runat="server" />      </td>
    </tr-->
    <tr id="cnco" style="display:;" runat="server">
      <td align="right">分类描述：</td>
      <td align="left"><CE:Editor id="WE_NewsContent" runat="server" AutoConfigure="Simple" 
                    BreakElement="Br" Width="100%"  Height="350px" ></CE:Editor>
                    </td>
    </tr>
     <tr>
      <td align="right">操作设置：</td>
      <td align="left"><asp:CheckBox ID="CheckBox3" runat="server" Text="禁止删除" /></td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td height="35" align="left">
      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/buttom-02.gif" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
    </tr>
  </table>
  </td>
</tr>
</table>
    </div>
    </form>
</body>
</html>
